package com.ohs.service;

import com.ohs.pojo.Admin;
import com.ohs.pojo.Product;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface IAdminService {

    //管理员执行登录
    String doAdminLogin(Admin admin, Model model);

    //按分页查找商品
    String selectAllGoodsByPage(Integer currentPage, Model model);

    String addProduct(Product product, MultipartFile fileName, HttpSession session);

    String touUpdateProductPage(Integer proId, Model model);

    String updateProduct(Product product);

    String doDeleteProductPage(Integer proId);

    //按分页查找用户
    String findAllUsers(Integer currentPage, Model model);
}
